package com.xiaobai.design_pattern.factorymethod.createrole;

import com.xiaobai.design_pattern.factorymethod.productrole.AppleCake;
import com.xiaobai.design_pattern.factorymethod.productrole.Cake;

/**
 * @author wangtw
 * @ClassName AppleCakeCrator
 * @description: 苹果蛋糕生成工厂（具体工厂角色）
 * @date 2023/8/708:23
 */
public class AppleCakeCreator implements Creator{


    @Override
    public Cake factory() {
        return new AppleCake();
    }
}
